package com.chainyoung.component_tmperson.ui.activity.hdwallet;

import android.content.Intent;

import com.chainyoung.common.appcommon.entity.HdWalletCache;
import com.chainyoung.common.base.BaseActivity;
import com.chainyoung.common.di.AppComponent;
import com.chainyoung.component_tmperson.R;
import com.chainyoung.component_tmperson.R2;

import butterknife.OnClick;

//准备备份助记词
public class PrepareBackUpWordsActivity extends BaseActivity {

    private HdWalletCache hdWallet;

    @Override
    protected void setupActivityComponent(AppComponent appComponent) {

    }

    @Override
    protected void initUI() {
        setCurrentTitle(R.string.tmperson_back_up_words);
        hdWallet= (HdWalletCache) getIntent().getSerializableExtra("hdwallet");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.tmperson_activity_prepare_backup;
    }

    @OnClick(R2.id.tv_backup)
    void backUp() {
        Intent intent = new Intent(mContext, WordsActivity.class);
        intent.putExtra("isFirst", true);
        intent.putExtra("hdwallet",hdWallet);
        mContext.startActivity(intent);
        finish();
    }

    @OnClick(R2.id.tv_cancel)
    void cancel() {
        finish();
    }


}
